home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
BARNET
/
FREENET
/
JEFFRAY
/
COPYSOCK
/
!CopySocks
/
!Help
next >
Wrap
Text File
|
1996-03-07
|
2KB
|
62 lines
Copy Socks 0.01 (7th March 1996)
by
Ian Jeffray of Riscy Developments. (ianj@pobox.com)
---------------------------------------------------
Hi all,
I promised this a week or so ago, and I apologise for not uploading it sooner,
but it was in BASIC and was a MESS.
What I really want to do is create a small, event driven module
from this rubbish, but time and experience prevent that right now. :(
Should be easy enough to set up; just edit the !Run file. The syntax
of these lines is:
StartSocket <in socket> <out socket> <machine>
So for example, my 'internet visible' machine here at Paradise is
paradise1.compulink.co.uk and I have a machine called a310 (!) which
I want people to be able to access the web server on. I set up the
IP masquerading and firewalling with 'ipfw' as documented in the
FreeNet docs (Yup, sorry, this program's of no use to Acorn/ANT !Internet
users... blame Acorn) so that the a310 an 'see' the internet, and the
web address http://paradise1.compulink.co.uk/ will actually
get to port 80 on the a310, which will serve the connection, rather than
having a web server on 'paradise1' itself. Nice! The set up for this:
StartSocket 80 80 a310
Simple eh? Whats probably more useful for folks is to have something
like
StartSocket 8000 80 a310
so that an address like http://paradise1.compulink.co.uk:8000/ will
get to the A310, and you can ALSO have a web server on 'paradise1' :)
I have used FTP (ports 20 and 21 mapped from 2020, 2021) and also mail
(port 25 mapped straight thru')
Please note that as the program re-executes itself when accepting a
connection, the location of this application must be constant when in use,
and must be readable. I'm trying (!) to implement unix fork() and until
that time, or until I write this as a module, I'm afraid this is the only
way to duplicate code on the arc. :(
If you're having problems, or have ANY comments about this, please mail me
on ianj@pobox.com, (or ian_jeffray@mentorg.com for fast daytime response ;)
Note the 'official' site for this software is:
http://www.foobar.co.uk/dialin/ganymede/riscy/
Cheers
Ian.